package com.defangit.applicant.domain;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2019/3/9.
 */
public class Enroll {
    private int id;                 //报名活动唯一标识符
    private String enrollName;       //报名活动名称
    private String enrollRule;       //报名规则，可选填
    private LocalDateTime beginTime;//
    private LocalDateTime endTime;
    private List<TicketType> ticketTypes;     //存放票种信息
    private EnrollType type;         //活动类型
    private String banner;          //广告首页
    private List<String> pics=new ArrayList<>();//介绍信息
    private int orgId;              //活动发起人ID
    private LocalDateTime createTime=LocalDateTime.now();
    private String status;     //活动状态 可更换枚举类

    private List<String> address;
    private int maxEntity;  //最大报名人数，用于限制参与活动人员
    //private AttendInfo attendInfo;//报名信息 从List<String>中获取id与当前访问者id进行对比返回结果

    public int getId() {
        return id;
    }

    public Enroll setId(int id) {
        this.id = id;
        return this;
    }

    public String getEnrollName() {
        return enrollName;
    }

    public Enroll setEnrollName(String enrollName) {
        this.enrollName = enrollName;
        return this;
    }

    public String getEnrollRule() {
        return enrollRule;
    }

    public Enroll setEnrollRule(String enrollRule) {
        this.enrollRule = enrollRule;
        return this;
    }

    public LocalDateTime getBeginTime() {
        return beginTime;
    }

    public Enroll setBeginTime(LocalDateTime beginTime) {
        this.beginTime = beginTime;
        return this;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public Enroll setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
        return this;
    }

    public List<TicketType> getTicketTypes() {
        return ticketTypes;
    }

    public Enroll setTicketTypes(List<TicketType> ticketTypes) {
        this.ticketTypes = ticketTypes;
        return this;
    }

    public EnrollType getType() {
        return type;
    }

    public Enroll setType(EnrollType type) {
        this.type = type;
        return this;
    }

    public String getBanner() {
        return banner;
    }

    public Enroll setBanner(String banner) {
        this.banner = banner;
        return this;
    }

    public List<String> getPics() {
        return pics;
    }

    public Enroll setPics(List<String> pics) {
        this.pics = pics;
        return this;
    }

    public int getOrgId() {
        return orgId;
    }

    public Enroll setOrgId(int orgId) {
        this.orgId = orgId;
        return this;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public Enroll setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getStatus() {
        return status;
    }

    public Enroll setStatus(String status) {
        this.status = status;
        return this;
    }

    public List<String> getAddress() {
        return address;
    }

    public Enroll setAddress(List<String> address) {
        this.address = address;
        return this;
    }

    public int getMaxEntity() {
        return maxEntity;
    }

    public Enroll setMaxEntity(int maxEntity) {
        this.maxEntity = maxEntity;
        return this;
    }
}
